Function: ImageCallback

CALL:

ImageCallback(event)

DESCRIPTION:

Callback called by a MatlabServer object for generating an image of a Matlab figure as response

INPUT:

event modelit.webserver.HttpExchange
with the request data and methods to generate a response.

OUTPUT:

      No output
 

EXAMPLE:

   server = modelit.web.server.Server('localhost', 8081, @ImageCallback).start() 
 
   % Open a webbrowser and type: http://localhost:8081 in the address bar
   % Now an image with the Matlab logo appears in the browser.